package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantPsychologicalCounseling;

import java.util.List;
import java.util.Map;

public interface TenantPsychologicalCounselingService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantPsychologicalCounseling record);

    int insertSelective(TenantPsychologicalCounseling record);

    TenantPsychologicalCounseling selectByPrimaryKey(Long id);
    TenantPsychologicalCounseling getLastPsychologicalCounseling(Long id);

    int updateByPrimaryKeySelective(TenantPsychologicalCounseling record);

    int updateByPrimaryKey(TenantPsychologicalCounseling record);

    List<TenantPsychologicalCounseling> listPsychologicalCounselingByMap(Map<String, Object> map);

    long listPsychologicalCounselingCount(Map<String, Object> map);

    int delPsychologicalCounseling(Long id);

    List<Map<String, Object>> getPsychologicalCounselingStatistics(Map<String, Object> map);

    List<Map<String, Object>> statMonthConsulting(Map<String, Object> map);

    Map<String, Object> statConsultingManner(Map<String, Object> map);

    Map<String, Object> statPsyCounselingGender(Map<String, Object> map);

    List<Map<String, Object>> getUserPsyCounseling(PageInfo pi, Map<String, Object> map);

    Long getUserPsyCounselingCount(Map<String, Object> map);

}
